package id.co.gomobile.assessment

import java.util.Date;

class Role {

	// associations
	static hasMany = [users: User]

	// properties
	String name
	String description
	
	// date properties
	Date dateCreated
	Date lastUpdated
	
    static constraints = {
		name(matches: "ROLE_[A-Z]+", blank: false, unique: true)
		description()
		
		dateCreated()
		lastUpdated()
    }
}
